a='<wpt lat="'
b='lon="'
c='>'

lat=[]
lon=[]
for line in open("track","r"):
    line=line.split(";")
    lat.append(line[0])
    lon.append(line[1])

f=open("track.gpx","w")

for i in range(len(lat)):
    strip=lon[i]
    line=a+lat[i]+'" '+b+strip[:-1]+'" '+c
    f.write(line)
    f.write('\n')
    f.write("</wpt>")
    f.write('\n')
f.write("</gpx>")
f.close()


